package sum.Service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import sum.Dao.TeacherDao;
import sum.Entity.Student;
import sum.Entity.User;
import sum.Service.StudentService;
import sum.Service.TeacherService;

import javax.annotation.Resource;

@Service("teacherService")
public class TeacherServiceImpl implements TeacherService {
    @Resource
    TeacherDao teacherDao;
    @Override
    public int addone(Student student){return this.teacherDao.addone(student);};
    public int deleteByName(Student student){return this.teacherDao.deleteByName(student);};
    public int edit(Student student){return this.teacherDao.edit(student);};
}
